﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.HTML
{
    #region Using Statements

    using System;

    #endregion

    /// <summary>
    /// Ordered list. See the OL element definition in HTML 4.01.
    /// </summary>
    public class HTMLOListElement : HTMLElement
    {
        #region Constructors

        internal HTMLOListElement(Document owner)
            : base(owner, "ol")
        {
        }

        #endregion

        #region DOM Level 2 HTML Compliance

        /// <summary>
        /// Reduce spacing between list items. See the compact attribute 
        /// definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
        /// </summary>
        [Obsolete]
        public bool compact
        {
            get
            {
                return getAttributeAsType<bool>("compact", false);
            }
            set
            {
                setAttributeAsType<bool>("compact", value);
            }
        }

        /// <summary>
        /// Starting sequence number. See the start attribute definition in 
        /// HTML 4.01. This attribute is deprecated in HTML 4.01.
        /// </summary>
        [Obsolete]
        public int start
        {
            get
            {
                return getAttributeAsType<int>("start", 1);
            }
            set
            {
                setAttributeAsType<int>("start", value);
            }
        }

        /// <summary>
        /// Bullet style. See the type attribute definition in HTML 4.01. 
        /// This attribute is deprecated in HTML 4.01.
        /// </summary>
        [Obsolete]
        public string type
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_TYPE);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_TYPE, value);
            }
        }

        #endregion
    }
}
